package com.atguigu.spzx.model.entity.category;

import com.atguigu.spzx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/2
 * description：
 */
@Data
public class Category extends BaseEntity implements Serializable {
    private String name;
    private String imageUrl;
    private Long parentId;
    private Integer status;
    private Integer orderNum;
    @TableField(exist = false)
    private Boolean hasChildren;
    @TableField(exist = false)
    private List<Category> children;
}
